package com.intellagric.service.agritech;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.agritech.AgtResourceVo;
import com.intellagric.pojo.AgtResource;

/**
 * @Author: cwq
 * @Date: 2019/2/21 15:50
 * @Description:
 */
public interface ResourceService {
    //增加
    ResponseMessage addResource(AgtResource resource);

    //删除
    ResponseMessage deleteResource(String id);

    //修改
    ResponseMessage editResource(AgtResource resource);

    //查询
    AgtResource getResourceById(String id);
    LayuiDataGridResult getResourceList();

    LayuiDataGridResult getResourceByPage(int page, int limit);

    LayuiDataGridResult getResourceListByVo(AgtResourceVo agtResourceVo, int page, int limit);
}
